<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>init (Pitch)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File lib/pitch.rb, line 25</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span>(<span class="ruby-identifier">element</span>)
    <span class="ruby-ivar">@des</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;des&quot;</span>]
    <span class="ruby-ivar">@id</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;id&quot;</span>]
    <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;type&quot;</span>]
    <span class="ruby-ivar">@x</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;x&quot;</span>]
    <span class="ruby-ivar">@y</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;y&quot;</span>]
    <span class="ruby-ivar">@sv_id</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;sv_id&quot;</span>]
    <span class="ruby-ivar">@start_speed</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;start_speed&quot;</span>]
    <span class="ruby-ivar">@end_speed</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;end_speed&quot;</span>]
    <span class="ruby-ivar">@sz_top</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;sz_top&quot;</span>]
    <span class="ruby-ivar">@sz_bot</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;sz_bot&quot;</span>]
    <span class="ruby-ivar">@pfx_x</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;pfx_x&quot;</span>]
    <span class="ruby-ivar">@pfx_z</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;pfx_z&quot;</span>]
    <span class="ruby-ivar">@px</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;px&quot;</span>]
    <span class="ruby-ivar">@pz</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;pz&quot;</span>]
    <span class="ruby-ivar">@x0</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;x0&quot;</span>]
    <span class="ruby-ivar">@y0</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;y0&quot;</span>]
    <span class="ruby-ivar">@z0</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;z0&quot;</span>]
    <span class="ruby-ivar">@vx0</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;vx0&quot;</span>]
    <span class="ruby-ivar">@vy0</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;vy0&quot;</span>]
    <span class="ruby-ivar">@vz0</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;vz0&quot;</span>]
    <span class="ruby-ivar">@ax</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;ax&quot;</span>]
    <span class="ruby-ivar">@ay</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;ay&quot;</span>]
    <span class="ruby-ivar">@az</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;az&quot;</span>]
    <span class="ruby-ivar">@break_y</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;break_y&quot;</span>]
    <span class="ruby-ivar">@break_angle</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;break_angle&quot;</span>]
    <span class="ruby-ivar">@break_length</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;break_length&quot;</span>]
    <span class="ruby-ivar">@pitch_type</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;pitch_type&quot;</span>]
    <span class="ruby-ivar">@type_confidence</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;type_confidence&quot;</span>]
    <span class="ruby-ivar">@spin_dir</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;spin_dir&quot;</span>]
    <span class="ruby-ivar">@spin_rate</span> = <span class="ruby-identifier">element</span>.<span class="ruby-identifier">attributes</span>[<span class="ruby-value str">&quot;spin_rate&quot;</span>]
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>